import { reactive, ref, shallowReactive } from 'vue'

/**
 * @dataList 快速选择的数据列表 [{ label: '标题', theme: '背景颜色', prop: '用于数据选中', num: '数据', activeColor: '下划线背景颜色', unit: '单位' params: { name: '请求数据' } }]
 * @customStyle 快速选择模块的自定义样式
 */

export const uselistQuickFilter = function (options: any) {
  const dataList = shallowReactive([]) as Array<any>
  const customStyle = ref({})

  return reactive({
    dataList,
    customStyle,
    ...options,
  })
}
